package cc.mycraft.events;

import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

import cc.mycraft.MYCPlugin;

public final class DungeonSavePointEvent extends Event implements Cancellable{
	
	private static final HandlerList handlers = new HandlerList();

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
	}
	
	private MYCPlugin PG;
	private Location Loc;
	private Player Player;
	private int Score;
	private boolean cancelled;
	
	public DungeonSavePointEvent(MYCPlugin p,Player player,Location loc,int Score) {
		this.PG = p;
		this.Player = player;
		this.Loc = loc;
		this.Score = Score;
	}
	public int getNeedScore() {
		return this.Score;
	}
	public Player getPlayer() {
		return this.Player;
	}
	public Location getLocation() {
		return this.Loc;
	}
	public MYCPlugin getPlugin() {
		return this.PG;
	}

	public boolean isCancelled() {
		return this.cancelled;
	}
	public void setCancelled(boolean b) {
		this.cancelled = b;
	}
}
